class DisplayBase extends egret.DisplayObjectContainer{
	private data:any;
	public factor:number = 50;
	public constructor() {
		super();	
	}

	public init(db:any){
		this.data = db;	
	}

	protected createBitmapByName(name: string): egret.Bitmap {
        var result: egret.Bitmap = new egret.Bitmap();
        var texture: egret.Texture = RES.getRes(name);
        result.texture = texture;
        return result;
    }

	/**
	 * 创建刚体
	 */
	public createBody(w:number,h:number,x:number,y:number,world: p2.World,angle:number = 0,dis:egret.DisplayObject){
        var p2_body:P2Body = new P2Body();
        p2_body.create(w,h,x,y,world,angle,dis)
		return p2_body;
    }
}